<%@ page contentType="text/html;charset=utf-8" errorPage="error.jsp"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page import="java.net.URLEncoder"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>用户登录 - </TITLE>
<LINK href="styles/green/ejforum.css" type=text/css rel=stylesheet>
<SCRIPT language=JavaScript>
if(self.parent.frames.length != 0) {
	self.parent.location = "";
}
</SCRIPT>
<SCRIPT type=text/javascript>
function checkfield(theform) {
	if(trim($('username').value) == '') {
		alert('用户名不可以为空');return false;
	} else if(trim($('password1').value) == '') {
		alert('密码不可以为空');return false;
	} else {
		$('password').value = hex_md5(trim($('password1').value)); 
		$('password1').value = '';
		theform.submit();return false;
	}
}
</SCRIPT>
<SCRIPT src="js/common.js" type=text/javascript></SCRIPT>
<SCRIPT src="js/md5.js" type=text/javascript></SCRIPT>
</HEAD>
<BODY onkeydown="if(event.keyCode==27) return false;">
<s:actionerror cssStyle="color:red"/>
<DIV class=wrap>
<DIV id=header>
</DIV>
<table>
	<tr>
            <td >
                 <div style="height:73px; width: 193px; background-image: url('images/forumlogo.jpg')"></div>
            </td>
            <td>
                 <div style="height:73px; width: 827px; background-image: url('images/headlogo.jpg')"></div>
            </td>	
	</tr>
</table>
<FORM name=login onSubmit="checkfield(this); return false;" action="loginOnly" method="get">
<DIV class="mainbox formbox"><SPAN class=headactions>
<A class=notabs href="help/member.jsp" target=_blank>登录帮助</A></SPAN> 
<H1>会员登录</H1>
<TABLE cellSpacing=0 cellPadding=0 summary=会员登录>
  <TBODY>
  <TR>
    <TH><LABEL for=userID>用户名</LABEL></TH>
    <TD><INPUT id="username" tabIndex=2 maxLength=40 size=25 name="username"> 
      &nbsp;<A href="toRegister">立即注册</A> 
  <TR>
    <TH><LABEL for=pwd1>密码</LABEL></TH>
    <TD><INPUT id="password1" tabIndex=5 type=password size=25 name="password1"> 
	  &nbsp;<A href="findpwd.jsp">忘记密码</A><INPUT type=hidden id="password" name="password"></TD></TR>
  <TR class="btns">
    <TH>&nbsp;</TH>
    <TD height="30"><BUTTON class=submit tabIndex=100 name=loginsubmit type=submit 
      value="true">提交</BUTTON></TD></TR></TBODY></TABLE></DIV></FORM>
</DIV>
</BODY></HTML>
